﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyHotel_BUSWS.MyHotel_MenuDAO_Webservice;
using MyHotel_BUSWS.MyHotel_PhanQuyenDAO_Webservice;

namespace MyHotel_BUSWS
{
    public class MHPhanQuyenBUS
    {

        public static Menu[] getListMenu()
        {
            MenuDAOWSSoapClient ws = new MenuDAOWSSoapClient();
            return ws.getList();
        }


        public static Menu[] getMenuByMaNV(int manv)
        {
            MenuDAOWSSoapClient ws = new MenuDAOWSSoapClient();
            return ws.getMenuByMaNV(manv);
        }

        public static bool themMenu(Menu menu)
        {
            MenuDAOWSSoapClient ws = new MenuDAOWSSoapClient();
            return ws.themMenu(menu);
        }


        public static bool xoaPhanQuyen(PhanQuyen phanQuyen)
        {
            PhanQuyenDAOWSSoapClient ws = new PhanQuyenDAOWSSoapClient();
            return ws.xoaPhanQuyen(phanQuyen);
        }


        public static bool themPhanQuyen(PhanQuyen phanQuyen)
        {
            PhanQuyenDAOWSSoapClient ws = new PhanQuyenDAOWSSoapClient();
            return ws.themPhanQuyen(phanQuyen);
        }


        public static bool themNhomNguoiDung(NhomNguoiDung nhomND)
        {
            PhanQuyenDAOWSSoapClient ws = new PhanQuyenDAOWSSoapClient();
            return ws.themNhomNguoiDung(nhomND);
        }


        public static bool xoaNhomNguoiDung(NhomNguoiDung nhomND)
        {
            PhanQuyenDAOWSSoapClient ws = new PhanQuyenDAOWSSoapClient();
            return ws.xoaNhomNguoiDung(nhomND);
        }
    }
}